<script setup lang="ts">
import { ref, toRef, onMounted, reactive } from "vue";
import { getList } from '@/api/index'

// 修复对象拉平函数类型
const goobj = function (ele: any): Record<string, any> {
  let newobj: Record<string, any> = {};
  // 函数体保持不变...
  return newobj;
}

// 修复数组拉平函数类型
const goArr = function (ele: any[], laver: number): any[] {
  let newarr: any[] = [];
  // 函数体保持不变...
  return newarr;
}

// 修复防抖函数类型
const goantiShake = function (fun: () => void, time: number, type: string): void {
  // 函数体保持不变...
}

// 其他代码类似修复...
</script>